< previous page page_51 next page >

Page 51
Label Control
A label control is used to display text to the user. This control is typically used to identify input areas directly to the right or below the label. Add some label controls to your frmEmployee form that will be used to label text boxes for the Employee Information form.
EXERCISE
Drawing a Label Control
1. Select a label control in the toolbox by clicking once on the control.
2. Draw the label on the form near the top-left corner.
3. Change the Name property to lblLabel.
4. Change the Caption property to First Name.
5. Now add the rest of the labels as shown in Figure 3.3.
6. Make the Name property on each label control lblLabel. Youll be prompted to specify whether you want to create a control array. Answer yes to this prompt.
8160-0051a.gif
Figure 3.3
The Employee Information form with label controls.
analysis.gifLabel controls are used to place words onto a form. They will not typically be used to respond to events. This is why you dont need individual names for each label you place on a form.
Examples Filename: Employee1.frm

 
< previous page page_51 next page >

If you like this book, buy it!